package com.uhealin;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Partitioner;

public class HotelPartitioner extends Partitioner<Hotel, NullWritable> {

	@Override
	public int getPartition(Hotel key, NullWritable arg1, int arg2) {
		// TODO 자동 생성된 메소드 스텁
		return Math.abs((int)((key.getXa().get()+key.getYa().get())%arg2));
	}

	
}
